﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Head
    {
}
<blockquote class="layui-elem-quote1 quoteBox layui-form layui-search">
    <div class="layui-form-item" style="margin-bottom:0px">
        <label class="layui-form-label">模糊查询：</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="txtKeyWord" name="txtKeyWord" placeholder="角色名称/描述" />
        </div>
        <div class="layui-inline">
            <a class="layui-btn" id="funBtnSearch"><i class="layui-icon layui-icon-list"></i>搜索</a>
        </div>
    </div>
</blockquote>

<div class="layui-form">
    <div class="layui-table-tool tool-btn">
        <a class="layui-btn  layui-btn-darkblue" id="funBtnAdd"><i class="layui-icon layui-icon-add-1"></i>新增</a>
        <a class="layui-btn  layui-btn-lightgreen" id="funBtnEdit"><i class="layui-icon layui-icon-edit"></i>修改</a>
        <a class="layui-btn  layui-btn-lightgreen" id="funBtnMenu"><i class="layui-icon layui-icon-auz"></i>菜单</a>
        <a class="layui-btn  layui-btn-lightgreen" id="funBtnLayer"><i class="layui-icon layui-icon-auz"></i>图层</a>

        <a class="layui-btn" id="funBtnUpload"><i class="layui-icon layui-icon-upload"></i>导入</a>
        <a class="layui-btn" id="funBtnDerive"><i class="layui-icon layui-icon-auz"></i>导出</a>


        <a class="layui-btn  layui-btn-danger " id="funBtnRemove"><i class="layui-icon layui-icon-delete"></i>删除</a>
    </div>
    <table class="layui-hide" id="roleList" lay-filter="roleList"></table>
</div>

@section Foot
    {
    @*导入展示表格信息*@
    <script type="text/html" id="excelExportTpl">
        {{# layui.each(d.data, function(file_index, item){ }}
        <blockquote class="layui-elem-quote">{{d.files[file_index].name}}</blockquote>
        <div class="layui-tab">
            <ul class="layui-tab-title">
                {{# layui.each(item, function(sheet_name, content) { }}
                <li>{{sheet_name}}</li>
                {{# }); }}
            </ul>
            <div class="layui-tab-content">
                {{# layui.each(item, function(sheet_name, content) { }}
                <div class="layui-tab-item">
                    <table class="layui-table">
                        {{# layui.each(content, function(row_index, value) { }}
                        {{# var col_index = 0 }}
                        <tr>
                            {{# layui.each(value, function(col_key, val) { }}
                            <td id="table-export-{{file_index}}-{{sheet_name}}-{{row_index}}-{{col_index++}}">{{val}}</td>
                            {{# });}}
                        </tr>
                        {{# });}}
                    </table>
                    @*<pre class="layui-code">{{JSON.stringify(content, null, 2)}}</pre>*@
                </div>
                {{# }); }}
            </div>
        </div>
        {{# }) }}
    </script>

    <script type="text/html" id="switchValidTpl">
        <input type="checkbox" name="is_valid" value="{{d.id}}" lay-skin="switch" lay-text="启用|停用" lay-filter="funBtnValid" {{ d.is_valid == true ? 'checked' : '' }}>
    </script>
    <script type="text/html" id="gridTool">
        <a class="layui-btn layui-btn-xs layui-btn-lightgreen" lay-event="funBtnEdit"><i class="layui-icon layui-icon-edit"></i>修改</a>
        <a class="layui-btn layui-btn-xs layui-btn-lightgreen" lay-event="funBtnMenu"><i class="layui-icon layui-icon-auz"></i>菜单</a>
        <a class="layui-btn layui-btn-xs layui-btn-lightgreen" lay-event="funBtnLayer"><i class="layui-icon layui-icon-auz"></i>图层</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger " lay-event="funBtnRemove"><i class="layui-icon layui-icon-delete"></i>删除</a>
    </script>

    <script src="~/areas/authority/js/role.list.js"></script>
}


